package com.backend.demo1.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.backend.demo1.models.Member;

@Mapper
public interface MemberMapper {

    void insert(Member Member);

    Member findById(Long id);

    List<Member> findAll();

    void update(Member Member);

    void deleteById(Long id);

    // 检查是否存在该会员（通过 userId）
    int existsByUserId(@Param("userId") Long userId);
    
    
}